package com.hdp.kotlin_samples.high

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import com.hdp.kotlin_samples.R

/**
 * @Author: NYC
 * @CreateDate: 2021/3/29 4:02 PM
 * @Description:
 *
 * 协程示例
 */
class CoroutinesActivity2 : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_coroutine2)
        val view = findViewById<TextView>(R.id.tv_back)
        view.text = "424234"
    }

    private fun getStr(): String {
        return "this is str"
    }

}